package com.saui.traceu.view;

import java.util.ArrayList;

import android.graphics.Canvas;
import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.MapView;
import com.google.android.maps.OverlayItem;
import com.google.android.maps.Projection;


public class TraceUItemizedOverlay extends ItemizedOverlay<OverlayItem> {

	public TraceUItemizedOverlay(Drawable defaultMarker) {
		  super(boundCenterBottom(defaultMarker));
	}

	private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>();

	public void addOverlay(OverlayItem overlay) {
	    mOverlays.add(overlay);
	    populate();
	}
	
	@Override
	protected OverlayItem createItem(int i) {
	  return mOverlays.get(i);
	}

	@Override
	public int size() {
		return this.mOverlays.size();
	}

//	@Override
//	public void draw
//	(Canvas canvas, MapView mapView, boolean shadow) {
//		Projection projection = mapView.getProjection();
//		
//	}
}
